package com.yc.common.constant;

/**
 * 验证码常量
 */
public class CaptchaConstant {

    /**
     * 验证码 Redis Key前缀
     */
    public static final String CAPTCHA_KEY_PREFIX = "captcha:";

    /**
     * 验证码过期时间（分钟）
     */
    public static final Integer CAPTCHA_EXPIRATION = 3;

    /**
     * 验证码图片宽度
     */
    public static final int CAPTCHA_WIDTH = 160;

    /**
     * 验证码图片高度
     */
    public static final int CAPTCHA_HEIGHT = 60;

    /**
     * 验证码图片背景色
     */
    public static final int[] CAPTCHA_BACKGROUND_COLOR = {245, 250, 255};

    /**
     * 验证码字体颜色
     */
    public static final int[] CAPTCHA_FONT_COLOR = {0, 0, 128};

    /**
     * 验证码干扰线数量
     */
    public static final int CAPTCHA_INTERFERENCE_LINES = 6;

    /**
     * 验证码字体大小
     */
    public static final int CAPTCHA_FONT_SIZE = 30;
}